package com.ui.design.view.imagesEnlarge;

import android.annotation.SuppressLint;
import android.graphics.Matrix;
import android.graphics.PointF;
import android.util.Log;
import android.view.MotionEvent;
import android.widget.ImageView;
import android.widget.Toast;

import com.alibaba.android.arouter.facade.annotation.Route;
import com.ui.design.R;
import com.ui.design.main.base.BaseActivity;
import com.ui.design.main.constants.Constants;
import com.ui.design.view.imagesEnlarge.view.EnlargeImageView;

/**
 * author tangxianfeng
 * created  2021.8.5
 **/
@Route(path = Constants.EnlargeImgeView)
public class EnlargeActivity extends BaseActivity {

    @Override
    protected int initLayout() {
        return R.layout.activity_enlarge;
    }

    @Override
    protected void initView() {
        EnlargeImageView enlargeImageView=findViewById(R.id.enlargeiv);
        enlargeImageView.setEnlargeClickLister(new EnlargeImageView.EnlargeClickLister() {
            @Override
            public void clickInImageView() {
                Toast.makeText(EnlargeActivity.this, "点击图片区域", Toast.LENGTH_SHORT).show();
            }

            @Override
            public void touchInImageView() {
                Log.e("TEST","触碰图片区域");
            }

            @Override
            public void touchInBlank() {
                Log.e("TEST", "触碰空白区域");
            }

            @Override
            public void clickInBlank() {
                Toast.makeText(EnlargeActivity.this, "点击空白区域", Toast.LENGTH_SHORT).show();
            }
        });
    }

    @Override
    protected void initData() {
    }
}